Show correct size in the size entry.
authorAnders Carlsson <andersca@gnu.org>
Tue, 29 Jan 2002 21:29:55 +0000 (21:29 +0000)
committerAnders Carlsson <andersca@src.gnome.org>
Tue, 29 Jan 2002 21:29:55 +0000 (21:29 +0000)
2002-01-29  Anders Carlsson  <andersca@gnu.org>

* gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
size in the size entry.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkfontsel.c

index 386286da2f1ed8435c4517238ad08fd28a9b255a..4a193675cd5f7f2602f68a6fa73d0a0ee48efdca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-29  Anders Carlsson  <andersca@gnu.org>
+
+       * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
+       size in the size entry.
+
 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
index 386286da2f1ed8435c4517238ad08fd28a9b255a..4a193675cd5f7f2602f68a6fa73d0a0ee48efdca 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Anders Carlsson  <andersca@gnu.org>
+
+       * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
+       size in the size entry.
+
 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
index 386286da2f1ed8435c4517238ad08fd28a9b255a..4a193675cd5f7f2602f68a6fa73d0a0ee48efdca 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Anders Carlsson  <andersca@gnu.org>
+
+       * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
+       size in the size entry.
+
 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
index 386286da2f1ed8435c4517238ad08fd28a9b255a..4a193675cd5f7f2602f68a6fa73d0a0ee48efdca 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Anders Carlsson  <andersca@gnu.org>
+
+       * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
+       size in the size entry.
+
 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
index 386286da2f1ed8435c4517238ad08fd28a9b255a..4a193675cd5f7f2602f68a6fa73d0a0ee48efdca 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Anders Carlsson  <andersca@gnu.org>
+
+       * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
+       size in the size entry.
+
 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
index 386286da2f1ed8435c4517238ad08fd28a9b255a..4a193675cd5f7f2602f68a6fa73d0a0ee48efdca 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Anders Carlsson  <andersca@gnu.org>
+
+       * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
+       size in the size entry.
+
 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
index 386286da2f1ed8435c4517238ad08fd28a9b255a..4a193675cd5f7f2602f68a6fa73d0a0ee48efdca 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Anders Carlsson  <andersca@gnu.org>
+
+       * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
+       size in the size entry.
+
 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
index 88eb915c284bd96b46512089a90ec49b147e2a79..3ecf53e14f97d82f8a5818fe6c89bf0ab5454e97 100644 (file)
@@ -901,6 +901,7 @@ gtk_font_selection_select_size (GtkTreeSelection *selection,
   GtkTreeModel *model;
   GtkTreeIter iter;
   gint new_size;
+  gchar buffer[128];
   
   fontsel = GTK_FONT_SELECTION (data);
   
@@ -913,6 +914,10 @@ gtk_font_selection_select_size (GtkTreeSelection *selection,
        {
          /* If the size was selected by the user we set the selected_size. */
          fontsel->size = new_size;
+
+         sprintf (buffer, "%i", fontsel->size / PANGO_SCALE);
+         gtk_entry_set_text (GTK_ENTRY (fontsel->size_entry), buffer);
+
          gtk_font_selection_load_font (fontsel);
        }
     }